<template>
  <base-panel>
    <template #header>
      <h3>天气信息</h3>
    </template>
    <div class="weather-map">
      <img src="@/assets/weather-map.png" alt="天气图" class="map-image" />
      <div class="map-controls">
        <el-button class="map-btn">卫星云图</el-button>
        <el-button class="map-btn">雷达图</el-button>
        <el-button class="map-btn">台风</el-button>
      </div>
    </div>
  </base-panel>
</template>

<script setup lang="ts">
import BasePanel from '@/components/BasePanel.vue'
</script>

<style lang="scss" scoped>
.weather-map {
  position: relative;
  
  .map-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
  }
  
  .map-controls {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    
    .map-btn {
      padding: 6px 12px;
      background: rgba(13, 19, 35, 0.6);
      border: 1px solid rgba(63, 158, 255, 0.3);
      color: #fff;
      border-radius: 4px;
      cursor: pointer;
      transition: all 0.3s;
      backdrop-filter: blur(4px);
      
      &:hover {
        background: rgba(63, 158, 255, 0.2);
        border-color: rgba(63, 158, 255, 0.5);
      }
    }
  }
}
</style> 